-
-
Notifications
You must be signed in to change notification settings - Fork 637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the search, similar, list, and developer methods #557
Conversation
3a755cb
to
76a54ff
Compare
Because of changes to GPlay you should update tests to fix failing checks. |
There's no fails with list method, but it returns an empty array for all combinations of category and collection :-\ |
@mmoksh, did something change? I'm getting empty results again for the clustered apps.
|
@NathanManning I just checked! It works just fine! |
@mmoksh could you please fix |
@mmoksh My bad. There's something funky going on in our package-lock. |
@Aliaksandr-Kasko-JazzTeam The |
Hello, I'm trying to use the new list function of this PR and meet an error, could you help The steps to reproduce
package.json
|
@mmoksh many thanks to you. It seems to work fine. 👍 @facundoolano This PR looks great to merge into master and new package version |
I think |
@mmoksh thanks so much for this! |
@mmoksh thanks for this. This one PR addresses all the methods right? I'll set aside some time to review it, merge and publish a new version of the package. Please let me know if there something missing or broken still that I should take into account (I can't keep up with all the conversations going on in issues and PRs) |
Sure! |
const { BASE_URL } = require('./constants'); | ||
const { processFullDetailApps } = require('./utils/processPages'); | ||
|
||
function getBodyForRequests (collection, category) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how is this function different from the one in utils/processPages ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The body content and structure is different. We also pass different parameters here like the collection and category, not the token.
Google introduced new mapping for the first page of the search results to highlight one app that matches the search query. The rest of the pages have the same mapping as previous.
In this PR, I fixed
gplay.search
script by updating mappings. I also included the changes from PR #545 that fixesgplay.app
in this PR to avoid git conflicts when merging both PRs.Edit: Added a few more commits to fix the
gplay.similar
script, and to handle special cases when there is no search results.Edit2: Added a new commit to fix the
gplay.list
method.Use this for testing: